import fetch from '@/api'
// 表格列表
export function getWarehousePointList(params) {
    return fetch({
        method: 'get',
        url: `/warehouseJobPoint`,
        params,
    })
}

// 新增
export function addWarehousePoint(id,data) {  
    return fetch({
        method:'post',
        url:`/warehouseRoom/${id}/jobPoint`,
        data,
    })
}

// 编辑
export function updateWarehousePoint(id,data) {
    return fetch({
        method:'put',
        url:`/warehouseRoom/${id}/jobPoint`,
        data,
    })
}

// 删除
export function deleteWarehousePoint(id) {
    return fetch({
        method:'delete',
        url:`/warehouseJobPoint/${id}`,
    })
}

// 关联表格
export function contactList(id,data) {
    return fetch({
        method:'put',
        url:`/warehouseJobPoint/${id}/links`,
        data,
    })
}
